﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MudEngine.Parsing.AST
{
	public class ParenthesizedExpression : Expression
	{
		public Expression Expression { get; private set; }

		public ParenthesizedExpression(Expression expression)
		{
			this.Expression = expression;
            this.Expression.Parent = this;
		}

		public override void AcceptVisitor<C>(IAstNodeVisitor<C> visitor, C ctx)
		{
			visitor.VisitParenthesizedExpression(this, ctx);
		}
	}
}
